import VueRouter from 'vue-router'

// import Index from './home/index.vue'
// import Create from './home/create.vue'
// import Login from './home/login.vue'
const Index = () => import('./home/index.vue')
const Create = () => import('./home/create.vue')
const Login = () => import('./home/login.vue')


var router = new VueRouter({
    // mode: "history",
    // base: "/cassonote",   // 这里是路由地址的根路径配置。如： www.xxx.com/cassonote/路由地址
    routes: [{
        path: '',
        redirect: { name: 'index' },
        meta: { keepAlive: false }
    },
    {
        path: '/index',
        component: Index,
        name: 'index',
        meta: { keepAlive: false }
    },
    {
        path: '/create',
        component: Create,
        name: 'create',
        meta: { keepAlive: false }
    },
    {
        path: '/login',
        component: Login,
        name: 'login',
        meta: { keepAlive: false }
    },

    ]
})

export default router